﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace WomanMotion.WebApi.Infrastructure.DataBaseCommon
{
    /// <summary>
    /// 查询条件 (Key是where条件是and还是or And =0，  Or=1,  null=-1) (例子{"conditionalList": [{"key": -1,"value": {"fieldName": "ProductName","fieldValue": "架子","conditionalType": 1}}]} ）
    /// </summary>
    public class QueryConditionalList
    {
        /// <summary>
        /// where条件是and还是or And =0，  Or=1,  null=-1
        /// </summary>
        public WhereType Key { get; set; }
        /// <summary>
        /// 单个Where条件
        /// </summary>
        public QueryParameter Value { get; set; }
    }
}
